-- GENERATED SPELL FOR [Dread Creeper] --


function spell0_15974(pUnit, Event) --@Veil of Shadow,Heal--
pUnit:FullCastSpellOnTarget(28440,pUnit)
pUnit:RegisterEvent('Sorts_15974', 6332, 1)
end

function spell1_15974(pUnit, Event) --@Veil of Shadow,Heal--
pUnit:FullCastSpellOnTarget(53803,pUnit)
pUnit:RegisterEvent('Sorts_15974', 6343, 1)
end

function Sorts_15974(pUnit, Event)
local choix_sorts_15974 = math.random(0, 1)
if choix_sorts_15974 == 0 then
pUnit:RegisterEvent('spell0_15974', 1, 1)
end
if choix_sorts_15974 == 1 then
pUnit:RegisterEvent('spell1_15974', 1, 1)
end
end

function mob15974_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15974', math.random(1500, 3000), 1)
end

function mob15974_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15974_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15974_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15974, 1, 'mob15974_Action')
RegisterUnitEvent(15974, 2, 'mob15974_Leave')
RegisterUnitEvent(15974, 3, 'mob15974_Kill')
RegisterUnitEvent(15974, 4, 'mob15974_Die')
